package org.hamster.multidropbox.dropbox.command
{
	import mx.collections.ArrayCollection;
	
	import org.hamster.multidropbox.main.utils.PureMVCHelper;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class DropboxLinkFoldersUploadCommand extends SimpleCommand
	{
		public function DropboxLinkFoldersUploadCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var body:Object = notification.getBody();
			var folderName:String = body.folderName;
			var clientList:ArrayCollection = body.clientList;
			var fileRefList:ArrayCollection = body.fileRefList;
			PureMVCHelper.dropboxLinkFoldersProxy.uploadFiles(folderName, clientList, fileRefList);
		}
	}
}